package com.liujun.spring4x.demo.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录日志信息
 * @ClassName LoginLog
 * @Author liujun
 * @Date 2018-08-05 08:00:00
 * @Version 1.0
 */
public class LoginLog  implements Serializable {

	/**
	 * 登录的用户id
	 */
	private int loginLoginId;

	/**
	 * 用户的id
	 */
	private int userId;

	/**
	 * 登录的ip信息
	 */
	private String ip;

	/**
	 * 登录的时间
	 */
	private Date loginDate;

	public int getLoginLoginId() {
		return loginLoginId;
	}

	public void setLoginLoginId(int loginLoginId) {
		this.loginLoginId = loginLoginId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	@Override public String toString() {
		final StringBuilder sb = new StringBuilder("User{");
		sb.append("loginLoginId=").append(loginLoginId);
		sb.append(", userId=").append(userId);
		sb.append(", ip='").append(ip).append('\'');
		sb.append(", loginDate=").append(loginDate);
		sb.append('}');
		return sb.toString();
	}
}
